<!-- 首页loge -->
<template>
  <div class='LogeLive'>
    <div class="name">
      <div class=" portrait">
        <!-- <img src="#" alt=""> -->
      </div>
      <div class="content">
        <div class="nickname">喜欢吃面的</div>
        <div class="genre">美妆</div>
      </div>
    </div>
    <div class="bottom">
      <div class="people">
        <div class="peoples">1658人观看</div>
        <div class="holiday">圣诞前的大狂欢</div>
      </div>
    </div>
    <div class="live">回播中</div>
    <img class="picture"
      src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1588942402455&di=927bfc7a08cb34a7e3df5995320527ee&imgtype=0&src=http%3A%2F%2Fdl.ppt123.net%2Fpptbj%2F51%2F20181115%2Fmzj0ghw2xo2.jpg" />
  </div>
</template>

<script>

export default {
  // import引入的组件需要注入到对象中才能使用
  components: {},
  // 接受父组件的传值
  props: {},

  data () {
    // 这里存放数据
    return {

    }
  },
  // 监听属性 类似于data概念
  computed: {},
  // 监控data中的数据变化
  watch: {},
  // 方法集合
  methods: {

  },
  // 生命周期 - 创建完成（可以访问当前this实例）
  created () {

  },
  // 生命周期 - 挂载完成（可以访问DOM元素）
  mounted () {

  },
  // 生命周期 - 创建之前
  beforeCreate () { },
  // 生命周期 - 挂载之前
  beforeMount () { },
  // 生命周期 - 更新之前
  beforeUpdate () { },
  // 生命周期 - 更新之后
  updated () { },
  // 生命周期 - 销毁完成
  destroyed () { },
  // 如果页面有keep-alive缓存功能，这个函数会触发
  activated () { }
}
</script>
<style lang='scss' scoped>
//@import url(); 引入公共css类
.LogeLive {
  height: 130px;
  border-radius: 5px;
  margin: 0 10px 0 10px;
  position: relative;
  // background: yellow;
  .picture {
    width: 100%;
    height: 100%;
    border-radius: 5px;
  }
  .name {
    display: flex;
    align-items: center;
    position: absolute;
    width: 99px;
    height: 27px;
    opacity: 0.5;
    background: #000000;
    border-radius: 14px;
    top: 10px;
    left: 10px;
    .portrait {
      width: 23px;
      height: 23px;
      background: #ffffff;
      border: 1px solid #707070;
      border-radius: 50%;
      margin-left: 2.5px;
    }
    .content {
      margin-left: 2.5px;
      .nickname {
        width: 60px;
        height: 13px;
        line-height: 13px;
        font-size: 9px;
        font-family: PingFang SC, PingFang SC-Regular;
        font-weight: 400;
        text-align: left;
        color: #ffffff;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .genre {
        width: 20px;
        height: 11px;
        line-height: 11px;
        opacity: 0.75;
        font-size: 8px;
        font-family: PingFang SC, PingFang SC-Regular;
        font-weight: 400;
        text-align: left;
        color: #ffffff;
      }
    }
  }
  .bottom {
    display: flex;
    justify-content: space-between;
    position: absolute;
    left: 10px;
    bottom: 10px;
    .people {
      .peoples {
        width: 65px;
        height: 17px;
        line-height: 17px;
        font-size: 12px;
        font-family: PingFang SC, PingFang SC-Regular;
        font-weight: 400;
        text-align: left;
        color: #ffffff;
      }
      .holiday {
        width: 84px;
        height: 17px;
        line-height: 17px;
        font-size: 12px;
        font-family: PingFang SC, PingFang SC-Regular;
        font-weight: 400;
        text-align: left;
        color: #ffffff;
      }
    }
  }
  .live {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 17px;
    line-height: 17px;
    font-size: 12px;
    font-family: PingFang SC, PingFang SC-Regular;
    font-weight: 400;
    text-align: right;
    color: #ffc48a;
  }
}
</style>